summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2017-03-15 19:12:59 +0100
committerAndreas Gruenbacher <agruenba@redhat.com>2017-10-31 14:26:35 +0100
commit3a27411cb4bc3ce31db228e3569ad01b462a4310 (patch)
tree368d27aa18ab8867bfb8443b2223d7de421f0123 /fs/gfs2/inode.h
parentaac1a55b450c623ec236c0635cdb68408f632e9c (diff)
downloadtalos-obmc-linux-3a27411cb4bc3ce31db228e3569ad01b462a4310.tar.gz
talos-obmc-linux-3a27411cb4bc3ce31db228e3569ad01b462a4310.zip
gfs2: Implement SEEK_HOLE / SEEK_DATA via iomap
So far, lseek on gfs2 did not report holes. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.h')
-rw-r--r--fs/gfs2/inode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h
index aace8ce34a18..b5b6341a4f5c 100644
--- a/fs/gfs2/inode.h
+++ b/fs/gfs2/inode.h
@@ -109,6 +109,8 @@ extern int gfs2_setattr_simple(struct inode *inode, struct iattr *attr);
extern struct inode *gfs2_lookup_simple(struct inode *dip, const char *name);
extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf);
extern int gfs2_open_common(struct inode *inode, struct file *file);
+extern loff_t gfs2_seek_data(struct file *file, loff_t offset);
+extern loff_t gfs2_seek_hole(struct file *file, loff_t offset);
extern const struct inode_operations gfs2_file_iops;
extern const struct inode_operations gfs2_dir_iops;
OpenPOWER on IntegriCloud