projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm: frontswap: remove casting from function calls through ops structure
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
fs
/
utimes.c
diff --git
a/fs/utimes.c
b/fs/utimes.c
index
ba653f3
..
fa4dbe4
100644
(file)
--- a/
fs/utimes.c
+++ b/
fs/utimes.c
@@
-140,18
+140,19
@@
long do_utimes(int dfd, const char __user *filename, struct timespec *times,
goto out;
if (filename == NULL && dfd != AT_FDCWD) {
goto out;
if (filename == NULL && dfd != AT_FDCWD) {
+ int fput_needed;
struct file *file;
if (flags & AT_SYMLINK_NOFOLLOW)
goto out;
struct file *file;
if (flags & AT_SYMLINK_NOFOLLOW)
goto out;
- file = fget
(df
d);
+ file = fget
_light(dfd, &fput_neede
d);
error = -EBADF;
if (!file)
goto out;
error = utimes_common(&file->f_path, times);
error = -EBADF;
if (!file)
goto out;
error = utimes_common(&file->f_path, times);
- fput
(file
);
+ fput
_light(file, fput_needed
);
} else {
struct path path;
int lookup_flags = 0;
} else {
struct path path;
int lookup_flags = 0;