mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	gfs2: Use [NO_]CREATE consistently for gfs2_glock_get
When calling gfs2_glock_get(), consistently pass the CREATE or NO_CREATE flag for the create argument. This is the only place that passes 0 instead. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
		
							parent
							
								
									52c2d389fe
								
							
						
					
					
						commit
						3592bfaf74
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -336,7 +336,7 @@ static ssize_t demote_rq_store(struct gfs2_sbd *sdp, const char *buf, size_t len | |||
| 		return -EINVAL; | ||||
| 	if (!test_and_set_bit(SDF_DEMOTE, &sdp->sd_flags)) | ||||
| 		fs_info(sdp, "demote interface used\n"); | ||||
| 	rv = gfs2_glock_get(sdp, glnum, glops, 0, &gl); | ||||
| 	rv = gfs2_glock_get(sdp, glnum, glops, NO_CREATE, &gl); | ||||
| 	if (rv) | ||||
| 		return rv; | ||||
| 	gfs2_glock_cb(gl, glmode); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Andreas Gruenbacher
						Andreas Gruenbacher