Skip to contentSkip to conversation

fuse: change fuse_valid_size() to static

PATCH New Yang Yingliang 1 participant 1 message Aug 17, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fuse: change fuse_valid_size() to static

The fuse_valid_size() introduced in commit 05d4152f68bd ("fuse: implement statx") is only used in dir.c now, change it to static.

Fixes 05d4152f68bd ("fuse: implement statx")
---
 fs/fuse/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/dir.c +1 -1
index fb505c1fba02..0cf7c3dbd578 100644
@@ -350,7 +350,7 @@ int fuse_valid_type(int m)
 		S_ISBLK(m) || S_ISFIFO(m) || S_ISSOCK(m);
 }
 
-bool fuse_valid_size(u64 size)
+static bool fuse_valid_size(u64 size)
 {
 	return size <= LLONG_MAX;
 }
Signature · 1 line
2.25.1