File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -5020,30 +5020,29 @@ static int statmount_mnt_opts(struct kstatmount *s, struct seq_file *seq)
5020
5020
{
5021
5021
struct vfsmount * mnt = s -> mnt ;
5022
5022
struct super_block * sb = mnt -> mnt_sb ;
5023
+ size_t start = seq -> count ;
5023
5024
int err ;
5024
5025
5025
- if (sb -> s_op -> show_options ) {
5026
- size_t start = seq -> count ;
5027
-
5028
- err = security_sb_show_options (seq , sb );
5029
- if (err )
5030
- return err ;
5026
+ err = security_sb_show_options (seq , sb );
5027
+ if (err )
5028
+ return err ;
5031
5029
5030
+ if (sb -> s_op -> show_options ) {
5032
5031
err = sb -> s_op -> show_options (seq , mnt -> mnt_root );
5033
5032
if (err )
5034
5033
return err ;
5034
+ }
5035
5035
5036
- if (unlikely (seq_has_overflowed (seq )))
5037
- return - EAGAIN ;
5036
+ if (unlikely (seq_has_overflowed (seq )))
5037
+ return - EAGAIN ;
5038
5038
5039
- if (seq -> count == start )
5040
- return 0 ;
5039
+ if (seq -> count == start )
5040
+ return 0 ;
5041
5041
5042
- /* skip leading comma */
5043
- memmove (seq -> buf + start , seq -> buf + start + 1 ,
5044
- seq -> count - start - 1 );
5045
- seq -> count -- ;
5046
- }
5042
+ /* skip leading comma */
5043
+ memmove (seq -> buf + start , seq -> buf + start + 1 ,
5044
+ seq -> count - start - 1 );
5045
+ seq -> count -- ;
5047
5046
5048
5047
return 0 ;
5049
5048
}
You can’t perform that action at this time.
0 commit comments