search for: sb

Displaying 20 results from an estimated 1393 matches for "sb".

Did you mean: skb
2004 Jun 06
1
[PATCH] use sb_getblk
...'t care for obsolete junk). Index: src/super.c =================================================================== --- src/super.c (revision 1014) +++ src/super.c (working copy) @@ -799,7 +799,7 @@ /* get first two blocks */ for (i=0; i<2; i++) { - bhs[i] = getblk (OCFS_GET_BLOCKDEV(sb), i, 512); + bhs[i] = sb_getblk(sb, i); if (bhs[i] == NULL) { LOG_ERROR_STATUS(status = -EIO); goto leave; Index: src/journal.c =================================================================== --- src/journal.c (revision 1014) +++ src/journal.c (working copy) @@ -583,8 +583,7 @@...
2005 Oct 31
2
What is the history of CONFIG_EXT{2,3}_CHECK?
Can anyone tell me the history of CONFIG_EXT{2,3}_CHECK? There is code for a "check" option for mount if these options are enabled, but there's no way to enable them. TIA Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said.
2002 Dec 06
2
[patch] fix the ext3 data=journal unmount bug
...-------- fs/super.c | 6 +++++- include/linux/fs.h | 3 ++- 4 files changed, 24 insertions(+), 16 deletions(-) --- linux-akpm/fs/buffer.c~sync_fs Thu Dec 5 21:33:56 2002 +++ linux-akpm-akpm/fs/buffer.c Thu Dec 5 21:33:56 2002 @@ -327,6 +327,8 @@ int fsync_super(struct super_block *sb) lock_super(sb); if (sb->s_dirt && sb->s_op && sb->s_op->write_super) sb->s_op->write_super(sb); + if (sb->s_op && sb->s_op->sync_fs) + sb->s_op->sync_fs(sb); unlock_super(sb); unlock_kernel(); @@ -346,7 +348,7 @@ int fsync_dev(...
2016 Nov 02
0
[PATCH v3 10/15] secboot: split reset function
...ouveau/nvkm/subdev/secboot/acr_r352.c b/drm/nouveau/nvkm/subdev/secboot/acr_r352.c index 058386720a14..b350e107eff0 100644 --- a/drm/nouveau/nvkm/subdev/secboot/acr_r352.c +++ b/drm/nouveau/nvkm/subdev/secboot/acr_r352.c @@ -746,6 +746,54 @@ acr_r352_load(struct nvkm_acr *_acr, struct nvkm_secboot *sb, return 0; } +static int +acr_r352_shutdown(struct acr_r352 *acr, struct nvkm_secboot *sb) +{ + int i; + + /* Run the unload blob to unprotect the WPR region */ + if (acr->unload_blob && sb->wpr_set) { + int ret; + + nvkm_debug(&sb->subdev, "running HS unload blob\n...
2005 Feb 15
1
[PATCH] ext3: Fix sparse -Wbitwise warnings.
...FEATURE_COMPAT_HAS_JOURNAL set. */ Index: linux-warnings/fs/ext3/super.c =================================================================== --- linux-warnings/fs/ext3/super.c (revision 14) +++ linux-warnings/fs/ext3/super.c (revision 20) @@ -2105,13 +2105,13 @@ ext3_mark_recovery_complete(sb, es); } else { - __le32 ret; - if ((ret = EXT3_HAS_RO_COMPAT_FEATURE(sb, - ~EXT3_FEATURE_RO_COMPAT_SUPP))) { + int ret; + if ((ret = le32_to_cpu(EXT3_HAS_RO_COMPAT_FEATURE(sb, + ~EXT3_FEATURE_RO_COMPAT_SUPP)))) { printk(KERN_WARNING "EXT3-fs: %s: couldn't "...
2012 Apr 29
0
[PATCH 1/2] vfs: re-implement writeback_inodes_sb(_nr)_if_idle() and rename them
writeback_inodes_sb(_nr)_if_idle() is re-implemented by replacing down_read() with down_read_trylock() because - If ->s_umount is write locked, then the sb is not idle. That is writeback_inodes_sb(_nr)_if_idle() needn''t wait for the lock. - writeback_inodes_sb(_nr)_if_idle() grabs s_umount lock when it w...
2016 Mar 09
1
[PATCH 1/2] secboot: don't use hardcoded mask to enable falcon
...etions(-) diff --git a/drm/nouveau/nvkm/subdev/secboot/base.c b/drm/nouveau/nvkm/subdev/secboot/base.c index b718ba79177c..05c62549c39b 100644 --- a/drm/nouveau/nvkm/subdev/secboot/base.c +++ b/drm/nouveau/nvkm/subdev/secboot/base.c @@ -85,8 +85,8 @@ nvkm_secboot_falcon_enable(struct nvkm_secboot *sb) /* enable IRQs */ nvkm_wr32(device, sb->base + 0x010, 0xff); - nvkm_mask(device, 0x640, sb->irq_mask, 0x1000000); - nvkm_mask(device, 0x644, sb->irq_mask, 0x1000000); + nvkm_mask(device, 0x640, sb->irq_mask, sb->irq_mask); + nvkm_mask(device, 0x644, sb->irq_mask, sb->irq...
2016 Jan 18
0
[PATCH v2 2/5] core: add support for secure boot
...t; 0) + return ret; + + return 0; +} + +static int +falcon_wait_idle(struct nvkm_device *device, u32 base) +{ + int ret; + + ret = nvkm_wait_msec(device, 10, base + 0x04c, 0xffff, 0x0); + if (ret < 0) + return ret; + + return 0; +} + +static int +nvkm_secboot_falcon_enable(struct nvkm_secboot *sb) +{ + struct nvkm_device *device = sb->subdev.device; + int ret; + + /* enable engine */ + nvkm_mask(device, 0x200, sb->enable_mask, sb->enable_mask); + nvkm_rd32(device, 0x200); + ret = nvkm_wait_msec(device, 10, sb->base + 0x10c, 0x6, 0x0); + if (ret < 0) { + nvkm_mask(device, 0x2...
2003 Apr 02
4
randomForests predict problem
...newly created object, I get an error message. I thought I was because NA values in the dataframe, but I cleaned them and still got the same error. What am I doing wrong ? > library(mlbench) > library(randomForest) > data(Soybean) > test <- sample(1:683, 150, replace=F) > sb.rf <- randomForest(Class~., data=Soybean[-test,]) > sb.rf.pred <- predict(sb.rf, Soybean[test,]) Error in matrix(t1$countts, nr = nclass, nc = ntest) : No data to replace in matrix(...) I did it the same way with rpart and all worked fine : > library(rpart) > sb.rp <-...
2008 Dec 22
56
[git patches] Ocfs2 patches for merge window, batch 2/3
...dquot structures quota: Increase size of variables for limits and inode usage quota: Remove bogus 'optimization' in check_idq() and check_bdq() quota: Make _SUSPENDED just a flag quota: Allow to separately enable quota accounting and enforcing limits ext3: Use sb_any_quota_loaded() instead of sb_any_quota_enabled() ext4: Use sb_any_quota_loaded() instead of sb_any_quota_enabled() reiserfs: Use sb_any_quota_loaded() instead of sb_any_quota_enabled(). quota: Remove compatibility function sb_any_quota_enabled() quota: Introduce DQUOT_QU...
2011 Sep 01
3
Oh apply functions, how you confuse me
...ta and creates a number of useful graphics for our area. I am unable to figure out one summary though and its all cause I dont fully understand the apply family of functions. Consider the following: #Create data Df..<-rbind(data.frame(Id=1:1008,Dir=rep(c("NB","NB","SB","SB"),252),Mph=runif(1008,0,65), Volume=runif(1008,0,19),Hour=rep(00,1008),Min5Break=rep(1:12,84),Day=rep(1,1008)), data.frame(Id=2009:2016,Dir=rep(c("NB","NB","SB","SB"),252),Mph=runif(1008,0,65), Volume=runif(1008,0,19),Hour=rep(01,1008),Min...
2016 Jan 21
2
[PATCH v2 2/5] core: add support for secure boot
...GPCCS] = "GPCCS", > + [NVKM_SECBOOT_FALCON_END] = "<invalid>", > +}; > + [snip] > +int > +nvkm_secboot_ctor(const struct nvkm_secboot_func *func, > + struct nvkm_device *device, int index, > + struct nvkm_secboot *sb) > +{ > + unsigned long fid; > + > + nvkm_subdev_ctor(&nvkm_secboot, device, index, 0, &sb->subdev); > + sb->func = func; > + Move these two after the switch statement ? > + /* setup the performing falcon's base address and masks */ &g...
2001 Mar 28
1
Ext3 and LFS - possible? fatal?
Has anyone tried LFS (ie >2G files support) and Ext3 together? Are there good reasons why this should/should not work? I see the RH enterprise kernel patch set specifically does not attempt both lfs and ext3, but the lfs patches themselves touch some reasonably localised parts of ext2, so I would hope (without having dived in there to test), that the ext3 changes would mirror that
2008 Oct 11
1
[PATCH] fstype: Fix ext4/ext4dev probing
...properly takes into account whether or not the ext4 and/or ext4dev filesystems are present, and properly handles the test_fs flag. The old code also has some really buggy checks --- for example, where it compared the set of supported ro_compat features against the incompat feature bitmask: (sb->s_feature_incompat & __cpu_to_le32(EXT3_FEATURE_RO_COMPAT_SUPP) I rewrote the ext4 checks so they are more easily understood and audited. Signed-off-by: "Theodore Ts'o" <tytso at mit.edu> --- usr/kinit/fstype/fstype.c | 144 ++++++++++++++++++++++++++++++++++++++++---...
2010 Jan 29
0
[PATCH 3/3] ocfs2:freeze-thaw: make it work -v2
...changed, 257 insertions(+), 2 deletions(-) diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index 785762d..1aeb3a5 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c @@ -3891,10 +3891,123 @@ void ocfs2_refcount_unlock(struct ocfs2_refcount_tree *ref_tree, int ex) ocfs2_cluster_unlock(osb, lockres, level); } +/* + * This is only ever run on behalf of another node. + */ +void ocfs2_freeze_worker(struct work_struct *work) +{ + struct super_block *sb; + int ret, do_unlock = 0; + struct ocfs2_super *osb = container_of(work, struct ocfs2_super, + osb_freeze_work); + + mlog(...
2005 Jun 09
1
[LLVMdev] gmake check failures on FreeBSD 5.4
FAIL: /usr/home/jeffc/llvm/obj/../test/Regression/Transforms/InstCombine/2004-11-27-SetCCForCastLargerAndConstant.ll: %Y = cast sbyte %SB to uint ; <uint> [#uses=1] %Y = cast sbyte %SB to int ; <int> [#uses=1] %Y = cast sbyte %SB to int ; <int> [#uses=1] %Y = cast ubyte %SB to uint ; <uint> [#uses=1] %Y = cast ubyte %SB to int ; <int> [#uses=1]...
2007 Nov 09
2
wrapper for coxph with a subset argument
...<- factor(c("M","F")) sex <- rep(sex, times = n/2) testdf <- data.frame(times,event,trt,sex) } # Make test data, n = 200 testdf <- makeTestDF(200) # Cox wrapper function with subset, this one works # Takes subset as expression subwrap1 <- function(x, sb) { sb <- eval(substitute(sb), x) x <- x[sb,] coxph(Surv(times,event)~trt, data = x) } subwrap1(testdf, sex == 'F') # This next one also works, but uses a character variable # instead of an expression as the subset argument subwrap2 <- function(x, sb) { sb <- eval(...
2011 Mar 07
4
[PATCH 0/3] ocfs2: Add batched discard support
Hi all, This patch set adds batched discard support to ocfs2. Please check. Thanks. Regards, Tao
2015 Jun 17
4
[PATCH 1/4] daemon: introduce free_stringsbuf
Simple shortcut to easily cleanup a stringsbuf. --- daemon/daemon.h | 1 + daemon/guestfsd.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/daemon/daemon.h b/daemon/daemon.h index 53cb797..bed4dbc 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -92,6 +92,7 @@ extern int add_string (struct stringsbuf *sb, const char *str)...
2005 Jan 06
0
[2.6 patch] fs/ext3/: possible cleanups
...0 +++ linux-2.6.10-mm2-full/fs/ext3/resize.c 2005-01-06 23:22:50.000000000 +0100 @@ -285,8 +285,8 @@ * sequence of powers of 3, 5, and 7: 1, 3, 5, 7, 9, 25, 27, 49, 81, ... * For a non-sparse filesystem it will be every group: 1, 2, 3, 4, ... */ -unsigned ext3_list_backups(struct super_block *sb, unsigned *three, - unsigned *five, unsigned *seven) +static unsigned ext3_list_backups(struct super_block *sb, unsigned *three, + unsigned *five, unsigned *seven) { unsigned *min = three; int mult = 3; --- linux-2.6.10-mm2-full/include/linux/ext3_fs.h.old 2005-01-06 23:23:16.0000000...