Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190958
b: refs/heads/master
c: aa3e557
h: refs/heads/master
v: v3
  • Loading branch information
Steve French committed May 12, 2010
1 parent 078ba4b commit fe593b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 108 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fdb3603800e7a65bc3cafdfd5a1797d08f09e582
refs/heads/master: aa3e5572c538d753dce11bf93532a75f95d22b40
107 changes: 0 additions & 107 deletions trunk/fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@
#include "cifs_spnego.h"
#define CIFS_MAGIC_NUMBER 0xFF534D42 /* the first four bytes of SMB PDUs */

#ifdef CONFIG_CIFS_QUOTA
static const struct quotactl_ops cifs_quotactl_ops;
#endif /* QUOTA */

int cifsFYI = 0;
int cifsERROR = 1;
int traceSMB = 0;
Expand Down Expand Up @@ -135,9 +131,6 @@ cifs_read_super(struct super_block *sb, void *data,
/* if (cifs_sb->tcon->ses->server->maxBuf > MAX_CIFS_HDR_SIZE + 512)
sb->s_blocksize =
cifs_sb->tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE; */
#ifdef CONFIG_CIFS_QUOTA
sb->s_qcop = &cifs_quotactl_ops;
#endif
sb->s_blocksize = CIFS_MAX_MSGSIZE;
sb->s_blocksize_bits = 14; /* default 2**14 = CIFS_MAX_MSGSIZE */
inode = cifs_root_iget(sb, ROOT_I);
Expand Down Expand Up @@ -418,106 +411,6 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
return 0;
}

#ifdef CONFIG_CIFS_QUOTA
int cifs_xquota_set(struct super_block *sb, int quota_type, qid_t qid,
struct fs_disk_quota *pdquota)
{
int xid;
int rc = 0;
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
struct cifsTconInfo *pTcon;

if (cifs_sb)
pTcon = cifs_sb->tcon;
else
return -EIO;


xid = GetXid();
if (pTcon) {
cFYI(1, "set type: 0x%x id: %d", quota_type, qid);
} else
rc = -EIO;

FreeXid(xid);
return rc;
}

int cifs_xquota_get(struct super_block *sb, int quota_type, qid_t qid,
struct fs_disk_quota *pdquota)
{
int xid;
int rc = 0;
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
struct cifsTconInfo *pTcon;

if (cifs_sb)
pTcon = cifs_sb->tcon;
else
return -EIO;

xid = GetXid();
if (pTcon) {
cFYI(1, "set type: 0x%x id: %d", quota_type, qid);
} else
rc = -EIO;

FreeXid(xid);
return rc;
}

int cifs_xstate_set(struct super_block *sb, unsigned int flags, int operation)
{
int xid;
int rc = 0;
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
struct cifsTconInfo *pTcon;

if (cifs_sb)
pTcon = cifs_sb->tcon;
else
return -EIO;

xid = GetXid();
if (pTcon) {
cFYI(1, "flags: 0x%x operation: 0x%x", flags, operation);
} else
rc = -EIO;

FreeXid(xid);
return rc;
}

int cifs_xstate_get(struct super_block *sb, struct fs_quota_stat *qstats)
{
int xid;
int rc = 0;
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
struct cifsTconInfo *pTcon;

if (cifs_sb)
pTcon = cifs_sb->tcon;
else
return -EIO;

xid = GetXid();
if (pTcon) {
cFYI(1, "pqstats %p", qstats);
} else
rc = -EIO;

FreeXid(xid);
return rc;
}

static const struct quotactl_ops cifs_quotactl_ops = {
.set_xquota = cifs_xquota_set,
.get_xquota = cifs_xquota_get,
.set_xstate = cifs_xstate_set,
.get_xstate = cifs_xstate_get,
};
#endif

static void cifs_umount_begin(struct super_block *sb)
{
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
Expand Down

0 comments on commit fe593b6

Please sign in to comment.