mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
new helper: is_root_inode()
replace open-coded instances Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
ac7576f4b1
commit
a7400222e3
5 changed files with 13 additions and 15 deletions
|
|
@ -198,8 +198,8 @@ ncp_single_volume(struct ncp_server *server)
|
|||
|
||||
static inline int ncp_is_server_root(struct inode *inode)
|
||||
{
|
||||
return (!ncp_single_volume(NCP_SERVER(inode)) &&
|
||||
inode == inode->i_sb->s_root->d_inode);
|
||||
return !ncp_single_volume(NCP_SERVER(inode)) &&
|
||||
is_root_inode(inode);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue