Skip to content

Commit

Permalink
gfs2: Don't support fallocate on jdata files
Browse files Browse the repository at this point in the history
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 <adas@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
  • Loading branch information
Abhi Das authored and Bob Peterson committed Jun 9, 2015
1 parent 1bdf453 commit 8606691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ static long gfs2_fallocate(struct file *file, int mode, loff_t offset, loff_t le
struct gfs2_holder gh;
int ret;

if (mode & ~FALLOC_FL_KEEP_SIZE)
if ((mode & ~FALLOC_FL_KEEP_SIZE) || gfs2_is_jdata(ip))
return -EOPNOTSUPP;

mutex_lock(&inode->i_mutex);
Expand Down

0 comments on commit 8606691

Please sign in to comment.