Commit e10f7b55 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French

clarify return value of cifs_convert_flags()

cifs_convert_flags returns 0x20197 in the default case. It's not
immediately evident where that number comes from, so change it
to be an or'ed set of flags. The compiler will boil it down anyway.

(Thanks to Guenter Kukkukk for clarifying the flags).
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 77c57ec8
...@@ -75,7 +75,11 @@ static inline int cifs_convert_flags(unsigned int flags) ...@@ -75,7 +75,11 @@ static inline int cifs_convert_flags(unsigned int flags)
return (GENERIC_READ | GENERIC_WRITE); return (GENERIC_READ | GENERIC_WRITE);
} }
return 0x20197; return (READ_CONTROL | FILE_WRITE_ATTRIBUTES | FILE_READ_ATTRIBUTES |
FILE_WRITE_EA | FILE_APPEND_DATA | FILE_WRITE_DATA |
FILE_READ_DATA);
} }
static inline int cifs_get_disposition(unsigned int flags) static inline int cifs_get_disposition(unsigned int flags)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment