Lines Matching refs:share
36 static inline int share_config_create_mode(struct ksmbd_share_config *share, in share_config_create_mode() argument
39 if (!share->force_create_mode) { in share_config_create_mode()
41 return share->create_mask; in share_config_create_mode()
43 return posix_mode & share->create_mask; in share_config_create_mode()
45 return share->force_create_mode & share->create_mask; in share_config_create_mode()
48 static inline int share_config_directory_mode(struct ksmbd_share_config *share, in share_config_directory_mode() argument
51 if (!share->force_directory_mode) { in share_config_directory_mode()
53 return share->directory_mask; in share_config_directory_mode()
55 return posix_mode & share->directory_mask; in share_config_directory_mode()
58 return share->force_directory_mode & share->directory_mask; in share_config_directory_mode()
61 static inline int test_share_config_flag(struct ksmbd_share_config *share, in test_share_config_flag() argument
64 return share->flags & flag; in test_share_config_flag()
67 void __ksmbd_share_config_put(struct ksmbd_share_config *share);
69 static inline void ksmbd_share_config_put(struct ksmbd_share_config *share) in ksmbd_share_config_put() argument
71 if (!atomic_dec_and_test(&share->refcount)) in ksmbd_share_config_put()
73 __ksmbd_share_config_put(share); in ksmbd_share_config_put()
77 bool ksmbd_share_veto_filename(struct ksmbd_share_config *share,