mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
ANDROID: sdcardfs: rate limit warning print
Signed-off-by: Daniel Rosenberg <drosen@google.com> Bug: 35848445 Change-Id: Ida72ea0ece191b2ae4a8babae096b2451eb563f6
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "sdcardfs.h"
|
||||
#include <linux/fs_struct.h>
|
||||
#include <linux/ratelimit.h>
|
||||
|
||||
/* Do not directly use this function. Use OVERRIDE_CRED() instead. */
|
||||
const struct cred *override_fsids(struct sdcardfs_sb_info *sbi, struct sdcardfs_inode_info *info)
|
||||
@@ -603,7 +604,7 @@ static const char *sdcardfs_follow_link(struct dentry *dentry, void **cookie)
|
||||
|
||||
static int sdcardfs_permission_wrn(struct inode *inode, int mask)
|
||||
{
|
||||
WARN(1, "sdcardfs does not support permission. Use permission2.\n");
|
||||
WARN_RATELIMIT(1, "sdcardfs does not support permission. Use permission2.\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -688,7 +689,7 @@ static int sdcardfs_permission(struct vfsmount *mnt, struct inode *inode, int ma
|
||||
|
||||
static int sdcardfs_setattr_wrn(struct dentry *dentry, struct iattr *ia)
|
||||
{
|
||||
WARN(1, "sdcardfs does not support setattr. User setattr2.\n");
|
||||
WARN_RATELIMIT(1, "sdcardfs does not support setattr. User setattr2.\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user