X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fopen.c;h=e52389e1f05b4c010b49ef9a6e4d8cb11bfac504;hb=1817dc0370873caff77b924b53ae489edaf9b1e2;hp=5b6ef7e2859e30f6a6d577576c65961e5c001f22;hpb=fe3c560b8a22cb28e54fe8950abef38e88d75831;p=~andy%2Flinux diff --git a/fs/open.c b/fs/open.c index 5b6ef7e2859..e52389e1f05 100644 --- a/fs/open.c +++ b/fs/open.c @@ -255,10 +255,10 @@ int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len) if (((offset + len) > inode->i_sb->s_maxbytes) || ((offset + len) < 0)) return -EFBIG; - if (!inode->i_op->fallocate) + if (!file->f_op->fallocate) return -EOPNOTSUPP; - return inode->i_op->fallocate(inode, mode, offset, len); + return file->f_op->fallocate(file, mode, offset, len); } SYSCALL_DEFINE(fallocate)(int fd, int mode, loff_t offset, loff_t len)