Skip to content

Commit 8606691

Browse files
Abhi DasAstralBob
authored andcommitted
gfs2: Don't support fallocate on jdata files
We cannot provide an efficient implementation due to the headers on the data blocks, so there doesn't seem much point in having it. Signed-off-by: Abhi Das <[email protected]> Signed-off-by: Bob Peterson <[email protected]>
1 parent 1bdf453 commit 8606691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/gfs2/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ static long gfs2_fallocate(struct file *file, int mode, loff_t offset, loff_t le
917917
struct gfs2_holder gh;
918918
int ret;
919919

920-
if (mode & ~FALLOC_FL_KEEP_SIZE)
920+
if ((mode & ~FALLOC_FL_KEEP_SIZE) || gfs2_is_jdata(ip))
921921
return -EOPNOTSUPP;
922922

923923
mutex_lock(&inode->i_mutex);

0 commit comments

Comments
 (0)