X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=fs%2Ffcntl.c;h=ec53ee19db423a11b897a861645918751c4c2dec;hb=09dc15b91430b346e313f6fdb3c4d8b4422465e5;hp=0522e283a4f48c1b5bfc2433de9ad12d82cfc891;hpb=900add27f55660158e7cac07674882befec49297;p=mirror_ubuntu-bionic-kernel.git diff --git a/fs/fcntl.c b/fs/fcntl.c index 0522e283a4f4..ec53ee19db42 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c @@ -32,7 +32,7 @@ #define SETFL_MASK (O_APPEND | O_NONBLOCK | O_NDELAY | O_DIRECT | O_NOATIME) -static int setfl(int fd, struct file * filp, unsigned long arg) +int setfl(int fd, struct file * filp, unsigned long arg) { struct inode * inode = file_inode(filp); int error = 0; @@ -63,6 +63,8 @@ static int setfl(int fd, struct file * filp, unsigned long arg) if (filp->f_op->check_flags) error = filp->f_op->check_flags(arg); + if (!error && filp->f_op->setfl) + error = filp->f_op->setfl(filp, arg); if (error) return error; @@ -83,6 +85,7 @@ static int setfl(int fd, struct file * filp, unsigned long arg) out: return error; } +EXPORT_SYMBOL_GPL(setfl); static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, int force)