author | Jiamin Ma <jiamin.ma@amlogic.com> | 2018-03-23 07:46:38 (GMT) |
---|---|---|
committer | jie.yuan <jie.yuan@amlogic.com> | 2018-03-30 02:00:20 (GMT) |
commit | 7daed7256b0d4a50fd9e1c37ac617a6e99130243 (patch) | |
tree | 2e6de1e4f6bdaf63c17d72d0871daf808b121897 | |
parent | 1da309964d5b9ddcfea5d196725b390d47dc9f8d (diff) | |
download | common-7daed7256b0d4a50fd9e1c37ac617a6e99130243.zip common-7daed7256b0d4a50fd9e1c37ac617a6e99130243.tar.gz common-7daed7256b0d4a50fd9e1c37ac617a6e99130243.tar.bz2 |
fs: warn only once for sdcard permission checking
PD#162734: fs: too much logs for sdcard permission checking
Change-Id: If53ffc961d5852741046b3b7cb4e72779f56b801
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
-rw-r--r-- | fs/sdcardfs/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/sdcardfs/inode.c b/fs/sdcardfs/inode.c index 4a971e2..14ba53f 100644 --- a/fs/sdcardfs/inode.c +++ b/fs/sdcardfs/inode.c @@ -600,7 +600,11 @@ static const char *sdcardfs_follow_link(struct dentry *dentry, void **cookie) static int sdcardfs_permission_wrn(struct inode *inode, int mask) { +#ifdef CONFIG_AMLOGIC_MODIFY + WARN_ONCE(1, "sdcardfs does not support permission. Use permission2.\n"); +#else WARN_RATELIMIT(1, "sdcardfs does not support permission. Use permission2.\n"); +#endif return -EINVAL; } |