Message ID | 20240830-vfs-file-f_version-v1-4-6d3e4816aa7b@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | file: remove f_version | expand |
On Fri 30-08-24 15:04:45, Christian Brauner wrote: > It's not used so don't bother with it at all. > > Signed-off-by: Christian Brauner <brauner@kernel.org> Looks good. Feel free to add: Reviewed-by: Jan Kara <jack@suse.cz> Honza > --- > drivers/s390/char/hmcdrv_dev.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/s390/char/hmcdrv_dev.c b/drivers/s390/char/hmcdrv_dev.c > index 8d50c894711f..e069dd685899 100644 > --- a/drivers/s390/char/hmcdrv_dev.c > +++ b/drivers/s390/char/hmcdrv_dev.c > @@ -186,9 +186,6 @@ static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) > if (pos < 0) > return -EINVAL; > > - if (fp->f_pos != pos) > - ++fp->f_version; > - > fp->f_pos = pos; > return pos; > } > > -- > 2.45.2 >
diff --git a/drivers/s390/char/hmcdrv_dev.c b/drivers/s390/char/hmcdrv_dev.c index 8d50c894711f..e069dd685899 100644 --- a/drivers/s390/char/hmcdrv_dev.c +++ b/drivers/s390/char/hmcdrv_dev.c @@ -186,9 +186,6 @@ static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) if (pos < 0) return -EINVAL; - if (fp->f_pos != pos) - ++fp->f_version; - fp->f_pos = pos; return pos; }
It's not used so don't bother with it at all. Signed-off-by: Christian Brauner <brauner@kernel.org> --- drivers/s390/char/hmcdrv_dev.c | 3 --- 1 file changed, 3 deletions(-)