Lines Matching refs:share
40 share_config_create_mode(struct ksmbd_share_config *share, in share_config_create_mode() argument
43 umode_t mode = (posix_mode ?: (umode_t)-1) & share->create_mask; in share_config_create_mode()
45 return mode | share->force_create_mode; in share_config_create_mode()
49 share_config_directory_mode(struct ksmbd_share_config *share, in share_config_directory_mode() argument
52 umode_t mode = (posix_mode ?: (umode_t)-1) & share->directory_mask; in share_config_directory_mode()
54 return mode | share->force_directory_mode; in share_config_directory_mode()
57 static inline int test_share_config_flag(struct ksmbd_share_config *share, in test_share_config_flag() argument
60 return share->flags & flag; in test_share_config_flag()
63 void ksmbd_share_config_del(struct ksmbd_share_config *share);
64 void __ksmbd_share_config_put(struct ksmbd_share_config *share);
66 static inline void ksmbd_share_config_put(struct ksmbd_share_config *share) in ksmbd_share_config_put() argument
68 if (!atomic_dec_and_test(&share->refcount)) in ksmbd_share_config_put()
70 __ksmbd_share_config_put(share); in ksmbd_share_config_put()
75 bool ksmbd_share_veto_filename(struct ksmbd_share_config *share,