fs: don't specify flag FIEMAP_FLAG_SYNC when calling fiemap_prep()
Subsystems (2)
PATCH 1/1 fs: don't specify flag FIEMAP_FLAG_SYNC when calling fiemap_prep()
commit 45dd052e67ad17c7a ("fs: handle FIEMAP_FLAG_SYNC in fiemap_prep") has moved FIEMAP_FLAG_SYNC handling to fiemap_prep(), so don't have to specify flags FIEMAP_FLAG_SYNC when calling fiemap_prep in __generic_block_fiemap().
Signed-off-by Chengguang Xu <[email protected]>
--- fs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ioctl.c +1 -1
@@ -303,7 +303,7 @@ static int __generic_block_fiemap(struct inode *inode,bool past_eof = false, whole_file = false;int ret =0 ; - ret =fiemap_prep (inode, fieinfo, start, &len,FIEMAP_FLAG_SYNC ); + ret =fiemap_prep (inode, fieinfo, start, &len,0 );if (ret)return ret;
Signature · 1 line
2.27.0
Quoted 6 lines · Chengguang Xu
commit
45dd052e67ad17c7a("fs: handleFIEMAP_FLAG_SYNCinfiemap_prep") has movedFIEMAP_FLAG_SYNChandling tofiemap_prep(), so don't have to specify flagsFIEMAP_FLAG_SYNCwhen callingfiemap_prepin__generic_block_fiemap().Signed-off-by Chengguang Xu <[email protected]>
Looks good to me. You can add:
Reviewed-by Jan Kara <[email protected]>
Honza
Quoted 21 lines
--- fs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/ioctl.c +1
-1@@ -303,7 +303,7 @@ static int __generic_block_fiemap(struct inode *inode,bool past_eof = false, whole_file = false;int ret =0 ; - ret =fiemap_prep (inode, fieinfo, start, &len,FIEMAP_FLAG_SYNC ); + ret =fiemap_prep (inode, fieinfo, start, &len,0 );if (ret)return ret;Signature · 1 line
2.27.0
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR